home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / attr.z / attr
Text File  |  1998-10-20  |  7KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaattttttttrrrr((((1111))))                                                                aaaattttttttrrrr((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      attr - manipulate Extended Attributes on filesystem objects
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----ssss aaaattttttttrrrrnnnnaaaammmmeeee [ ----VVVV aaaattttttttrrrrvvvvaaaalllluuuueeee ] ppppaaaatttthhhhnnnnaaaammmmeeee
  13.  
  14.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----gggg aaaattttttttrrrrnnnnaaaammmmeeee ppppaaaatttthhhhnnnnaaaammmmeeee
  15.  
  16.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----rrrr aaaattttttttrrrrnnnnaaaammmmeeee ppppaaaatttthhhhnnnnaaaammmmeeee
  17.  
  18.      aaaattttttttrrrr [ ----LLLLRRRRqqqq ] ----llll ppppaaaatttthhhhnnnnaaaammmmeeee
  19.  
  20.  
  21. OOOOVVVVEEEERRRRVVVVIIIIEEEEWWWW
  22.      Extended Attributes implement the ability for a user to attach name/value
  23.      pairs to objects within the filesystem.  They are currently only
  24.      supported in XFS filesystems.
  25.  
  26.      They could be used to store meta-information about the file.  For example
  27.      "character-set=kanji" could tell a document browser to use the Kanji
  28.      character set when displaying that document and "thumbnail=..." could
  29.      provide a reduced resolution overview of a high resolution graphic image.
  30.  
  31.      The _n_a_m_e_s can be up to 256 bytes in length, terminated by the first 0
  32.      byte.  The intent is that they be printable ASCII (or other character
  33.      set) names for the attribute.
  34.  
  35.      The _v_a_l_u_e_s can be up to 256KB of arbitrary binary data.
  36.  
  37.      Attributes can be attached to all types of inodes:  regular files,
  38.      directories, symbolic links, device nodes, etc.
  39.  
  40.      There are 2 disjoint attribute name spaces associated with every
  41.      filesystem object.  They are the rrrrooooooootttt and uuuusssseeeerrrr address spaces.  The rrrrooooooootttt
  42.      address space is accessable only to the superuser, and then only by
  43.      specifying a flag argument to the function call.  Other users will not
  44.      see or be able to modify attributes in the rrrrooooooootttt address space.  The uuuusssseeeerrrr
  45.      address space is protected by the normal file permissions mechanism, so
  46.      the owner of the file can decide who is able to see and/or modify the
  47.      value of attributes on any particular file.
  48.  
  49.      Attributes are currently supported only in the XFS filesystem type.
  50.  
  51. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  52.      The _a_t_t_r utility allows the manipulation of Extended Attributes
  53.      associated with filesystem objects from within shell scripts.
  54.  
  55.      There are four main operations that _a_t_t_r can perform:
  56.  
  57.      GGGGEEEETTTT  The ----gggg aaaattttttttrrrrnnnnaaaammmmeeee option tells _a_t_t_r to search the named object and
  58.           print (to _ssss_tttt_dddd_oooo_uuuu_tttt) the value associated with that attribute name.
  59.           With the ----qqqq flag, _ssss_tttt_dddd_oooo_uuuu_tttt will be exactly and only the value of the
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaattttttttrrrr((((1111))))                                                                aaaattttttttrrrr((((1111))))
  71.  
  72.  
  73.  
  74.           attribute, suitable for storage directly into a file or processing
  75.           via a piped command.
  76.  
  77.      LLLLIIIISSSSTTTT The ----llll option tells _a_t_t_r to list the names of all the attributes
  78.           that are associated with the object, and the number of bytes in the
  79.           value of each of those attributes.  With the ----qqqq flag, _ssss_tttt_dddd_oooo_uuuu_tttt will be
  80.           a simple list of only the attribute names, one per line, suitable
  81.           for input into a script.
  82.  
  83.      RRRREEEEMMMMOOOOVVVVEEEE
  84.           The ----rrrr aaaattttttttrrrrnnnnaaaammmmeeee option tells _a_t_t_r to remove an attribute with the
  85.           given name from the object if the attribute exists.  There is no
  86.           output on sucessful completion.
  87.  
  88.      SSSSEEEETTTT////CCCCRRRREEEEAAAATTTTEEEE
  89.           The ----ssss aaaattttttttrrrrnnnnaaaammmmeeee option tells _a_t_t_r to set the named attribute of the
  90.           object to the value read from _ssss_tttt_dddd_iiii_nnnn.  If an attribute with that name
  91.           already exists, its value will be replaced with this one.  If an
  92.           attribute with that name does not already exist, one will be created
  93.           with this value.  With the ----VVVV aaaattttttttrrrrvvvvaaaalllluuuueeee flag, the attribute will be
  94.           set to have a value of aaaattttttttrrrrvvvvaaaalllluuuueeee and _ssss_tttt_dddd_iiii_nnnn will not be read.  With
  95.           the ----qqqq flag, _ssss_tttt_dddd_oooo_uuuu_tttt will not be used.  Without the ----qqqq flag, a
  96.           message showing the attribute name and the entire value will be
  97.           printed.
  98.  
  99.      When the ----LLLL option is given and the named object is a symbolic link,
  100.      operate on the attributes of the object referenced by the symbolic link.
  101.      Without this option, operate on the attributes of the symbolic link
  102.      itself.
  103.  
  104.      When the ----RRRR option is given and the process has appropriate privileges,
  105.      operate in the _r_o_o_t attribute namespace rather that the _U_S_E_R attribute
  106.      namespace.
  107.  
  108.      When the ----qqqq option is given _a_t_t_r will try to keep quiet.  It will output
  109.      error messages (to _ssss_tttt_dddd_eeee_rrrr_rrrr) but will not print status messages (to
  110.      _ssss_tttt_dddd_oooo_uuuu_tttt).
  111.  
  112. NNNNOOOOTTTTEEEESSSS
  113.      The standard file interchange/archive programs _t_a_r(1), _c_p_i_o(1), and
  114.      _b_r_u(1) will not archive or restore Extended Attributes, while the
  115.      _x_f_s_d_u_m_p(1m) program will.
  116.  
  117. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  118.      attr_get(2), attr_getf(2), attr_list(2), attr_listf(2), attr_multi(2),
  119.      attr_multif(2), attr_remove(2), attr_removef(2), attr_set(2),
  120.      attr_setf(2), xfsdump(1m).
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.